/*
@Project:SpringBoot
@Date:2023/3/6
@Create:Ya Potato
@IDE:IntelliJ IDEA 2023.1
@version:JDK 1.8
*/

package com.itheima.domain;

public class Pet {
    private String type;
    private String name;
    // 省略属性getter和setter方法
    // 省略 toString()方法


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "type='" + type + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
